import 'base_model.dart';
class BaseConfig extends BaseModel {
  String danmuAppId;
  String danmuAddr;
  String commentAppId;
  String contactus;
  String ossService;
  String frontCover;
  String frontCover2x1;
  String frontCover3x4;
  InterfaceApi interfaceApi;
  List<UrlRewrite> urlRewrite;
  String contactQQ;
  Horn horn;
  AdvAppid advAppid;
  String userAgreement;
  String ysxy;
  int scoreExpireDays;
  String productAppkey;
  List<String> withdrawNotice;
  List<String> withdrawAlipayNotice;
  List<WithdrawLimitFaq> withdrawLimitFaq;
  List<ScoreExpireFaq> scoreExpireFaq;
  List<ReadGiftScoreFaq> readGiftScoreFaq;
  String defaultSearch;
  String appLogUrl;
  String userShareUrl;
  String userInviteUrl;
  String comicShareUrl;
  String comicShareTitle;
  String comicShareContent;
  String chapterShareTitle;
  String chapterShareContent;
  String invitefriendShareTitle;
  String invitefriendShareContent;
  int apiType;

  BaseConfig(
      {this.danmuAppId,
      this.danmuAddr,
      this.commentAppId,
      this.contactus,
      this.ossService,
      this.frontCover,
      this.frontCover2x1,
      this.frontCover3x4,
      this.interfaceApi,
      this.urlRewrite,
      this.contactQQ,
      this.horn,
      this.advAppid,
      this.userAgreement,
      this.ysxy,
      this.scoreExpireDays,
      this.productAppkey,
      this.withdrawNotice,
      this.withdrawAlipayNotice,
      this.withdrawLimitFaq,
      this.scoreExpireFaq,
      this.readGiftScoreFaq,
      this.defaultSearch,
      this.appLogUrl,
      this.userShareUrl,
      this.userInviteUrl,
      this.comicShareUrl,
      this.comicShareTitle,
      this.comicShareContent,
      this.chapterShareTitle,
      this.chapterShareContent,
      this.invitefriendShareTitle,
      this.invitefriendShareContent,
      this.apiType});

  BaseConfig.fromJson(Map<String, dynamic> json) {
    danmuAppId = json['danmu_appid']??0;
    danmuAddr = json['danmu_addr'];
    commentAppId = json['comment_appid'];
    contactus = json['contactus'];
    ossService = json['ossservice'];
    frontCover = json['front_cover'];
    frontCover2x1 = json['front_cover21'];
    frontCover3x4 = json['front_cover43'];
    interfaceApi = json['interfaceapi'] != null
        ? InterfaceApi.fromJson(json['interfaceapi'])
        : null;
    if (json['urlRewrite'] != null) {
      urlRewrite = [];
      json['urlRewrite'].forEach((v) {
        urlRewrite.add(UrlRewrite.fromJson(v));
      });
    }
    contactQQ = json['contactQQ'];
    horn = json['horn'] != null ? Horn.fromJson(json['horn']) : null;
    advAppid = json['adv_appid'] != null
        ? AdvAppid.fromJson(json['adv_appid'])
        : null;
    userAgreement = json['user_agreement'];
    ysxy = json['ysxy'];
    scoreExpireDays = json['score_expire_days'];
    productAppkey = json['product_appkey'];
    withdrawNotice = json['withdraw_notice']?.cast<String>();
    withdrawAlipayNotice = json['withdraw_alipay_notice']?.cast<String>();
    if (json['withdraw_limit_faq'] != null) {
      withdrawLimitFaq = [];
      json['withdraw_limit_faq'].forEach((v) {
        withdrawLimitFaq.add(WithdrawLimitFaq.fromJson(v));
      });
    }
    if (json['score_expire_faq'] != null) {
      scoreExpireFaq = [];
      json['score_expire_faq'].forEach((v) {
        scoreExpireFaq.add(ScoreExpireFaq.fromJson(v));
      });
    }
    if (json['read_gift_score_faq'] != null) {
      readGiftScoreFaq = [];
      json['read_gift_score_faq'].forEach((v) {
        readGiftScoreFaq.add(ReadGiftScoreFaq.fromJson(v));
      });
    }
    defaultSearch = json['default_search'];
    appLogUrl = json['app_log_url'];
    userShareUrl = json['user_share_url'];
    userInviteUrl = json['user_invite_url'];
    comicShareUrl = json['comic_share_url'];
    comicShareTitle = json['comic_share_title'];
    comicShareContent = json['comic_share_content'];
    chapterShareTitle = json['chapter_share_title'];
    chapterShareContent = json['chapter_share_content'];
    invitefriendShareTitle = json['invitefriend_share_title'];
    invitefriendShareContent = json['invitefriend_share_content'];
    apiType = json['api_type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['danmu_appid'] = this.danmuAppId;
    data['danmu_addr'] = this.danmuAddr;
    data['comment_appid'] = this.commentAppId;
    data['contactus'] = this.contactus;
    data['ossService'] = this.ossService;
    data['front_cover'] = this.frontCover;
    data['front_cover21'] = this.frontCover2x1;
    data['front_cover43'] = this.frontCover3x4;
    if (this.interfaceApi != null) {
      data['interfaceapi'] = this.interfaceApi.toJson();
    }
    if (this.urlRewrite != null) {
      data['urlRewrite'] = this.urlRewrite.map((v) => v.toJson()).toList();
    }
    data['contactQQ'] = this.contactQQ;
    if (this.horn != null) {
      data['horn'] = this.horn.toJson();
    }
    if (this.advAppid != null) {
      data['adv_appid'] = this.advAppid.toJson();
    }
    data['user_agreement'] = this.userAgreement;
    data['ysxy'] = this.ysxy;
    data['score_expire_days'] = this.scoreExpireDays;
    data['product_appkey'] = this.productAppkey;
    data['withdraw_notice'] = this.withdrawNotice;
    data['withdraw_alipay_notice'] = this.withdrawAlipayNotice;
    if (this.withdrawLimitFaq != null) {
      data['withdraw_limit_faq'] =
          this.withdrawLimitFaq.map((v) => v.toJson()).toList();
    }
    if (this.scoreExpireFaq != null) {
      data['score_expire_faq'] =
          this.scoreExpireFaq.map((v) => v.toJson()).toList();
    }
    if (this.readGiftScoreFaq != null) {
      data['read_gift_score_faq'] =
          this.readGiftScoreFaq.map((v) => v.toJson()).toList();
    }
    data['default_search'] = this.defaultSearch;
    data['app_log_url'] = this.appLogUrl;
    data['user_share_url'] = this.userShareUrl;
    data['user_invite_url'] = this.userInviteUrl;
    data['comic_share_url'] = this.comicShareUrl;
    data['comic_share_title'] = this.comicShareTitle;
    data['comic_share_content'] = this.comicShareContent;
    data['chapter_share_title'] = this.chapterShareTitle;
    data['chapter_share_content'] = this.chapterShareContent;
    data['invitefriend_share_title'] = this.invitefriendShareTitle;
    data['invitefriend_share_content'] = this.invitefriendShareContent;
    data['api_type'] = this.apiType;
    return data;
  }
}

class InterfaceApi {
  String getusertasklist;
  String getusertaskprocess;
  String validatetask;
  String usersignContinue;
  String usersignInfo;
  String luckdrawGetinfo;
  String luckdrawLuckdraw;
  String luckdrawAwardprize;
  String tasksGetuserreadtime;
  String advertiseaddscore;
  String validatetaskact;
  String getspacedays;
  String advertiseAddscore;
  String rewardsList;
  String rewardsValidate;
  String receiveDanmu;
  String sendDanmu;
  String comtGethotscomment;
  String newcommentadd;
  String newcommentsupport;
  String getchildrencomment;
  String newcommentuser;
  String newcommentcount;
  String newgetsv2;
  String newcommentdel;
  String sensitivegets;
  String newcommentgetcontent;
  String getcomicdata;
  String getchapterdata;
  String getsortconfig;
  String getsortlist;
  String gettopsearch;
  String getcomicranktags;
  String share;
  String getchapterlike;
  String addchapterlike;
  String getuserroleinfo;
  String getcomicinfoRole;
  String getcomicinfoRoleDetail;
  String getuserroleinfobyuserids;
  String getuserrecord;
  String setusercollect;
  String adduserread;
  String deluserread;
  String getusertoken;
  String getuserinfobytoken;
  String verifyinvite;
  String setuserinfo;
  String getuserprofiles;
  String logoffuser;
  String getuseruploadauth;
  String getuserbindinfo;
  String binduser;
  String unbinduser;
  String flowRecommend;
  String sendFeedbackv2;
  String getfeedbackimagetoken;
  String gethotfeedback;
  String getmyfeedback;
  String getrollfeedback;
  String getfeedbackinfo;
  String getfeedbackreplylist;
  String addreply;
  String getnewnoreadnum;
  String newadvertise;
  String newusergift;
  String getnewusergift;
  String spreadShare;
  String spreadGetinviteinfo;
  String spreadFriends;
  String idauthIdcard;
  String idauthUploadauth;
  String idauthRealnameinfo;
  String userScore;
  String userWithdrawdetail;
  String userLimit;
  String userAccount;
  String userWithdraw;
  String userCashopt;
  String shareGetprizenotice;
  String sendsms;
  String mobilebind;
  String mobilechange;
  String mkxqGetuserinfo;
  String getsmsconfig;
  String etrackingReadtime;
  String etrackingPage;
  String commonEtracking;
  String getIsUpgrade;

  InterfaceApi(
      {this.getusertasklist,
      this.getusertaskprocess,
      this.validatetask,
      this.usersignContinue,
      this.usersignInfo,
      this.luckdrawGetinfo,
      this.luckdrawLuckdraw,
      this.luckdrawAwardprize,
      this.tasksGetuserreadtime,
      this.advertiseaddscore,
      this.validatetaskact,
      this.getspacedays,
      this.advertiseAddscore,
      this.rewardsList,
      this.rewardsValidate,
      this.receiveDanmu,
      this.sendDanmu,
      this.comtGethotscomment,
      this.newcommentadd,
      this.newcommentsupport,
      this.getchildrencomment,
      this.newcommentuser,
      this.newcommentcount,
      this.newgetsv2,
      this.newcommentdel,
      this.sensitivegets,
      this.newcommentgetcontent,
      this.getcomicdata,
      this.getchapterdata,
      this.getsortconfig,
      this.getsortlist,
      this.gettopsearch,
      this.getcomicranktags,
      this.share,
      this.getchapterlike,
      this.addchapterlike,
      this.getuserroleinfo,
      this.getcomicinfoRole,
      this.getcomicinfoRoleDetail,
      this.getuserroleinfobyuserids,
      this.getuserrecord,
      this.setusercollect,
      this.adduserread,
      this.deluserread,
      this.getusertoken,
      this.getuserinfobytoken,
      this.verifyinvite,
      this.setuserinfo,
      this.getuserprofiles,
      this.logoffuser,
      this.getuseruploadauth,
      this.getuserbindinfo,
      this.binduser,
      this.unbinduser,
      this.flowRecommend,
      this.sendFeedbackv2,
      this.getfeedbackimagetoken,
      this.gethotfeedback,
      this.getmyfeedback,
      this.getrollfeedback,
      this.getfeedbackinfo,
      this.getfeedbackreplylist,
      this.addreply,
      this.getnewnoreadnum,
      this.newadvertise,
      this.newusergift,
      this.getnewusergift,
      this.spreadShare,
      this.spreadGetinviteinfo,
      this.spreadFriends,
      this.idauthIdcard,
      this.idauthUploadauth,
      this.idauthRealnameinfo,
      this.userScore,
      this.userWithdrawdetail,
      this.userLimit,
      this.userAccount,
      this.userWithdraw,
      this.userCashopt,
      this.shareGetprizenotice,
      this.sendsms,
      this.mobilebind,
      this.mobilechange,
      this.mkxqGetuserinfo,
      this.getsmsconfig,
      this.etrackingReadtime,
      this.etrackingPage,
      this.commonEtracking,
      this.getIsUpgrade});

  InterfaceApi.fromJson(Map<String, dynamic> json) {
    getusertasklist = json['getusertasklist'];
    getusertaskprocess = json['getusertaskprocess'];
    validatetask = json['validatetask'];
    usersignContinue = json['usersign_continue'];
    usersignInfo = json['usersign_info'];
    luckdrawGetinfo = json['luckdraw_getinfo'];
    luckdrawLuckdraw = json['luckdraw_luckdraw'];
    luckdrawAwardprize = json['luckdraw_awardprize'];
    tasksGetuserreadtime = json['tasks_getuserreadtime'];
    advertiseaddscore = json['advertiseaddscore'];
    validatetaskact = json['validatetaskact'];
    getspacedays = json['getspacedays'];
    advertiseAddscore = json['advertise_addscore'];
    rewardsList = json['rewards_list'];
    rewardsValidate = json['rewards_validate'];
    receiveDanmu = json['receive_danmu'];
    sendDanmu = json['send_danmu'];
    comtGethotscomment = json['comt_gethotscomment'];
    newcommentadd = json['newcommentadd'];
    newcommentsupport = json['newcommentsupport'];
    getchildrencomment = json['getchildrencomment'];
    newcommentuser = json['newcommentuser'];
    newcommentcount = json['newcommentcount'];
    newgetsv2 = json['newgetsv2'];
    newcommentdel = json['newcommentdel'];
    sensitivegets = json['sensitivegets'];
    newcommentgetcontent = json['newcommentgetcontent'];
    getcomicdata = json['getcomicdata'];
    getchapterdata = json['getchapterdata'];
    getsortconfig = json['getsortconfig'];
    getsortlist = json['getsortlist'];
    gettopsearch = json['gettopsearch'];
    getcomicranktags = json['getcomicranktags'];
    share = json['share'];
    getchapterlike = json['getchapterlike'];
    addchapterlike = json['addchapterlike'];
    getuserroleinfo = json['getuserroleinfo'];
    getcomicinfoRole = json['getcomicinfo_role'];
    getcomicinfoRoleDetail = json['getcomicinfo_role_detail'];
    getuserroleinfobyuserids = json['getuserroleinfobyuserids'];
    getuserrecord = json['getuserrecord'];
    setusercollect = json['setusercollect'];
    adduserread = json['adduserread'];
    deluserread = json['deluserread'];
    getusertoken = json['getusertoken'];
    getuserinfobytoken = json['getuserinfobytoken'];
    verifyinvite = json['verifyinvite'];
    setuserinfo = json['setuserinfo'];
    getuserprofiles = json['getuserprofiles'];
    logoffuser = json['logoffuser'];
    getuseruploadauth = json['getuseruploadauth'];
    getuserbindinfo = json['getuserbindinfo'];
    binduser = json['binduser'];
    unbinduser = json['unbinduser'];
    flowRecommend = json['flow_recommend'];
    sendFeedbackv2 = json['send_feedbackv2'];
    getfeedbackimagetoken = json['getfeedbackimagetoken'];
    gethotfeedback = json['gethotfeedback'];
    getmyfeedback = json['getmyfeedback'];
    getrollfeedback = json['getrollfeedback'];
    getfeedbackinfo = json['getfeedbackinfo'];
    getfeedbackreplylist = json['getfeedbackreplylist'];
    addreply = json['addreply'];
    getnewnoreadnum = json['getnewnoreadnum'];
    newadvertise = json['newadvertise'];
    newusergift = json['newusergift'];
    getnewusergift = json['getnewusergift'];
    spreadShare = json['spread_share'];
    spreadGetinviteinfo = json['spread_getinviteinfo'];
    spreadFriends = json['spread_friends'];
    idauthIdcard = json['idauth_idcard'];
    idauthUploadauth = json['idauth_uploadauth'];
    idauthRealnameinfo = json['idauth_realnameinfo'];
    userScore = json['user_score'];
    userWithdrawdetail = json['user_withdrawdetail'];
    userLimit = json['user_limit'];
    userAccount = json['user_account'];
    userWithdraw = json['user_withdraw'];
    userCashopt = json['user_cashopt'];
    shareGetprizenotice = json['share_getprizenotice'];
    sendsms = json['sendsms'];
    mobilebind = json['mobilebind'];
    mobilechange = json['mobilechange'];
    mkxqGetuserinfo = json['mkxq_getuserinfo'];
    getsmsconfig = json['getsmsconfig'];
    etrackingReadtime = json['etracking_readtime'];
    etrackingPage = json['etracking_page'];
    commonEtracking = json['common_etracking'];
    getIsUpgrade = json['GetIsUpgrade'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['getusertasklist'] = this.getusertasklist;
    data['getusertaskprocess'] = this.getusertaskprocess;
    data['validatetask'] = this.validatetask;
    data['usersign_continue'] = this.usersignContinue;
    data['usersign_info'] = this.usersignInfo;
    data['luckdraw_getinfo'] = this.luckdrawGetinfo;
    data['luckdraw_luckdraw'] = this.luckdrawLuckdraw;
    data['luckdraw_awardprize'] = this.luckdrawAwardprize;
    data['tasks_getuserreadtime'] = this.tasksGetuserreadtime;
    data['advertiseaddscore'] = this.advertiseaddscore;
    data['validatetaskact'] = this.validatetaskact;
    data['getspacedays'] = this.getspacedays;
    data['advertise_addscore'] = this.advertiseAddscore;
    data['rewards_list'] = this.rewardsList;
    data['rewards_validate'] = this.rewardsValidate;
    data['receive_danmu'] = this.receiveDanmu;
    data['send_danmu'] = this.sendDanmu;
    data['comt_gethotscomment'] = this.comtGethotscomment;
    data['newcommentadd'] = this.newcommentadd;
    data['newcommentsupport'] = this.newcommentsupport;
    data['getchildrencomment'] = this.getchildrencomment;
    data['newcommentuser'] = this.newcommentuser;
    data['newcommentcount'] = this.newcommentcount;
    data['newgetsv2'] = this.newgetsv2;
    data['newcommentdel'] = this.newcommentdel;
    data['sensitivegets'] = this.sensitivegets;
    data['newcommentgetcontent'] = this.newcommentgetcontent;
    data['getcomicdata'] = this.getcomicdata;
    data['getchapterdata'] = this.getchapterdata;
    data['getsortconfig'] = this.getsortconfig;
    data['getsortlist'] = this.getsortlist;
    data['gettopsearch'] = this.gettopsearch;
    data['getcomicranktags'] = this.getcomicranktags;
    data['share'] = this.share;
    data['getchapterlike'] = this.getchapterlike;
    data['addchapterlike'] = this.addchapterlike;
    data['getuserroleinfo'] = this.getuserroleinfo;
    data['getcomicinfo_role'] = this.getcomicinfoRole;
    data['getcomicinfo_role_detail'] = this.getcomicinfoRoleDetail;
    data['getuserroleinfobyuserids'] = this.getuserroleinfobyuserids;
    data['getuserrecord'] = this.getuserrecord;
    data['setusercollect'] = this.setusercollect;
    data['adduserread'] = this.adduserread;
    data['deluserread'] = this.deluserread;
    data['getusertoken'] = this.getusertoken;
    data['getuserinfobytoken'] = this.getuserinfobytoken;
    data['verifyinvite'] = this.verifyinvite;
    data['setuserinfo'] = this.setuserinfo;
    data['getuserprofiles'] = this.getuserprofiles;
    data['logoffuser'] = this.logoffuser;
    data['getuseruploadauth'] = this.getuseruploadauth;
    data['getuserbindinfo'] = this.getuserbindinfo;
    data['binduser'] = this.binduser;
    data['unbinduser'] = this.unbinduser;
    data['flow_recommend'] = this.flowRecommend;
    data['send_feedbackv2'] = this.sendFeedbackv2;
    data['getfeedbackimagetoken'] = this.getfeedbackimagetoken;
    data['gethotfeedback'] = this.gethotfeedback;
    data['getmyfeedback'] = this.getmyfeedback;
    data['getrollfeedback'] = this.getrollfeedback;
    data['getfeedbackinfo'] = this.getfeedbackinfo;
    data['getfeedbackreplylist'] = this.getfeedbackreplylist;
    data['addreply'] = this.addreply;
    data['getnewnoreadnum'] = this.getnewnoreadnum;
    data['newadvertise'] = this.newadvertise;
    data['newusergift'] = this.newusergift;
    data['getnewusergift'] = this.getnewusergift;
    data['spread_share'] = this.spreadShare;
    data['spread_getinviteinfo'] = this.spreadGetinviteinfo;
    data['spread_friends'] = this.spreadFriends;
    data['idauth_idcard'] = this.idauthIdcard;
    data['idauth_uploadauth'] = this.idauthUploadauth;
    data['idauth_realnameinfo'] = this.idauthRealnameinfo;
    data['user_score'] = this.userScore;
    data['user_withdrawdetail'] = this.userWithdrawdetail;
    data['user_limit'] = this.userLimit;
    data['user_account'] = this.userAccount;
    data['user_withdraw'] = this.userWithdraw;
    data['user_cashopt'] = this.userCashopt;
    data['share_getprizenotice'] = this.shareGetprizenotice;
    data['sendsms'] = this.sendsms;
    data['mobilebind'] = this.mobilebind;
    data['mobilechange'] = this.mobilechange;
    data['mkxq_getuserinfo'] = this.mkxqGetuserinfo;
    data['getsmsconfig'] = this.getsmsconfig;
    data['etracking_readtime'] = this.etrackingReadtime;
    data['etracking_page'] = this.etrackingPage;
    data['common_etracking'] = this.commonEtracking;
    data['GetIsUpgrade'] = this.getIsUpgrade;
    return data;
  }
}

class UrlRewrite {
  String from;
  String to;
  String type;

  UrlRewrite({this.from, this.to, this.type});

  UrlRewrite.fromJson(Map<String, dynamic> json) {
    from = json['from'];
    to = json['to'];
    type = json['type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['from'] = this.from;
    data['to'] = this.to;
    data['type'] = this.type;
    return data;
  }
}

class Horn {
  int totalTurn;
  String port;
  String endpoint;
  String hornDesc;

  Horn({this.totalTurn, this.port, this.endpoint, this.hornDesc});

  Horn.fromJson(Map<String, dynamic> json) {
    totalTurn = json['total_turn'];
    port = json['port'];
    endpoint = json['endpoint'];
    hornDesc = json['horn_desc'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['total_turn'] = this.totalTurn;
    data['port'] = this.port;
    data['endpoint'] = this.endpoint;
    data['horn_desc'] = this.hornDesc;
    return data;
  }
}

class AdvAppid {
  String ttAdvAppid;
  String gdtAdvAppid;
  String baiduAdvAppid;
  String ksAdvAppid;

  AdvAppid(
      {this.ttAdvAppid, this.gdtAdvAppid, this.baiduAdvAppid, this.ksAdvAppid});

  AdvAppid.fromJson(Map<String, dynamic> json) {
    ttAdvAppid = json['tt_adv_appid'];
    gdtAdvAppid = json['gdt_adv_appid'];
    baiduAdvAppid = json['baidu_adv_appid'];
    ksAdvAppid = json['ks_adv_appid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['tt_adv_appid'] = this.ttAdvAppid;
    data['gdt_adv_appid'] = this.gdtAdvAppid;
    data['baidu_adv_appid'] = this.baiduAdvAppid;
    data['ks_adv_appid'] = this.ksAdvAppid;
    return data;
  }
}

class WithdrawLimitFaq {
  String question;
  String answer;

  WithdrawLimitFaq({this.question, this.answer});

  WithdrawLimitFaq.fromJson(Map<String, dynamic> json) {
    question = json['question'];
    answer = json['answer'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['question'] = this.question;
    data['answer'] = this.answer;
    return data;
  }
}

class ScoreExpireFaq {
  String question;
  String answer;

  ScoreExpireFaq({this.question, this.answer});

  ScoreExpireFaq.fromJson(Map<String, dynamic> json) {
    question = json['question'];
    answer = json['answer'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['question'] = this.question;
    data['answer'] = this.answer;
    return data;
  }
}

class ReadGiftScoreFaq {
  String question;
  String answer;

  ReadGiftScoreFaq({this.question, this.answer});

  ReadGiftScoreFaq.fromJson(Map<String, dynamic> json) {
    question = json['question'];
    answer = json['answer'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['question'] = this.question;
    data['answer'] = this.answer;
    return data;
  }
}
